package com.springcloudalibaba.controller;

import com.springcloudalibaba.feign.NacosFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: TongRui乀
 * @Date: 2019-11-26 11:05
 * @description：
 */
@RestController
@RequestMapping("feign")
public class WebController {

    @Autowired
    private NacosFeign nacosFeign;


    @GetMapping("hello/{v}")
    public String hello(@PathVariable String v){
        return  nacosFeign.echo(v);
    }
}
